<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <title>消息推送</title>
    <link rel="stylesheet" href="/src/font/iconfont.css">
    <link rel="stylesheet" href="/src/libs/bootstrap-3.3.5-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="/css/manage.css">
    <script id="script" src="/src/libs/require.min.js" defer async="true" require-module="./manage_message_list"
            data-main="/src/js/config.js"></script>
    <!--[if lt IE 9]>
    <script src="/lib/html5shiv.min.js"></script>
    <script src="/lib/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<!--include "../public/manage_sidebar.html"-->
<!--include "../public/manage_header.html"-->
<div class="container-wrap">
    <div class="bread-nav clearfix p-l-lg">
        <ol class="fl">
            <li class="fl active text-333 text-basic"><a href="javascript:void(0);">客户中心&nbsp;&gt;&nbsp;</a></li>
            <li class="fl active text-333 text-basic"><a href="javascript:void(0);">消息推送</a>
            </li>
        </ol>
        <div class="fr">
            <a href="/page/manage_message_add.html?lid=4" class="btn btn-primary m-r-lg text-basic">+添加消息</a>
        </div>
    </div>
    <div class="row">
        <div class="m-r-lg m-l-lg">
            <div class="table-responsive">
                <table class="table table-hover m-t" width="100%" style="min-width:100%;">
                    <thead>
                    <tr>
                        <th class="font-normal text-basic" width="5%">序号</th>
                        <th class="font-normal text-basic" width="15%">消息标题</th>
                        <th class="font-normal text-basic" width="20%">消息内容</th>
                        <th class="font-normal text-basic" width="10%">推送状态</th>
                        <th class="font-normal text-basic" width="10%">是否立即推送</th>
                        <th class="font-normal text-basic" width="10%">推送时间</th>
                        <th class="font-normal text-basic" width="15%">操作</th>
                    </tr>
                    </thead>
                    <tbody class="text-666" id="table-list-content">

                    </tbody>
                    <script id="table-list-tpl" type="text/html">
                        {{each dataList as value i}}
                        <tr>
                            <td><span>{{i+1}}</span></td>
                            <td>
                                <span class="inline-block text-ellipsis text-basic">{{value.messageTitle}}</span>
                            </td>
                            <td><span class="inline-block text-ellipsis text-basic">{{value.messageShortContext}}</span></td>
                            <td><span class="inline-block text-ellipsis text-basic">{{if value.push==1}}已推送{{else}}未推送{{/if}}</span>
                            </td>
                            <td><span class="inline-block text-ellipsis text-basic">{{if value.pushNow==2}}否{{else}}是{{/if}}</span>
                            </td>
                            <td><span class="inline-block text-ellipsis text-basic">{{value.pushTime}}</span>
                            </td>
                            <td>
                                {{if value.push!=1}}
                                <a href="/page/manage_message_push.html?pushNowState={{value.push}}&id={{value.messageId}}&lid=4">立即推送</a>
                                <a href="/page/manage_message_add.html?id={{value.messageId}}&lid=4">编辑</a>
                                <a href="javascript:void(0)" god="{{value.messageId}}" gnm="{{value.messageName}}"
                                   class="del-btn">删除</a>
                                {{else}}
                                <a href="/page/manage_message_push.html?pushNowState={{value.push}}&id={{value.messageId}}">查看</a>
                                {{/if}}
                            </td>
                        </tr>
                        {{/each}}
                    </script>
                </table>
                <div id="cloading" class="hide">
                    <div id="loadmore"></div>
                </div>
            </div>
            <div class="pages fr">
                <ul id="pagination" class="pagination-container"></ul>
                <div class="page-sum text-right text-999 text-basic">当前页面总数：<span class="text-333"
                                                                                  id="page-sum">0</span></div>
            </div>
        </div>
    </div>
</div>
<!--include "../public/del_modal.html"-->
</body>
</html>
